<?php
	include("../../app/View/Parts/left.ctp");
	//echo $userid;
?>
<div  class="right">

	<div class="button"><?php  echo $this->Html->link('Add Menu', array('action' => 'add')); ?></div>
	<div class="br">&nbsp;</div>
	<table width="100%" cellpadding="10" cellspacing="1" cellpadding="10" class='grid_table'>
		<tr bgcolor="#ccc">
			<th>Sl</th>
			<th>Menu</th>
			<th>Created</th>
			<th>Modified</th>
			<th>Action</th>
		</tr>
		<?php
			$sl=0;
			foreach($FooterMenus as $FooterMenu){
				$sl ++ ;
				if($sl%2==0){
					echo '
						<tr bgcolor="#E2E2E2">
							<td>'.$sl.'</td>
							<td>'.$FooterMenu['FooterMenu']['title'].'</td>
							<td>'.$FooterMenu['FooterMenu']['created'].'</td>
							<td>'.$FooterMenu['FooterMenu']['modified'].'</td>
							<td>'.$this->Html->link('Edit', array('action' => 'edit', $FooterMenu['FooterMenu']['id'])).' | '.$this->Form->postLink('Delete', array('action' => 'delete',$FooterMenu['FooterMenu']['id']),array('confirm' => 'Are you sure?')).'</td>
						</tr>
					';
				}else{
					echo '
						<tr>
							<td>'.$sl.'</td>
							<td>'.$FooterMenu['FooterMenu']['title'].'</td>
							<td>'.$FooterMenu['FooterMenu']['created'].'</td>
							<td>'.$FooterMenu['FooterMenu']['modified'].'</td>
							<td>'.$this->Html->link('Edit', array('action' => 'edit', $FooterMenu['FooterMenu']['id'])).' | '.$this->Form->postLink('Delete', array('action' => 'delete',$FooterMenu['FooterMenu']['id']),array('confirm' => 'Are you sure?')).'</td>
						</tr>
					';
				}
			}
		?>
	</table>
</div>
<div style="clear:both;"></div>